package org.example.command;

import java.util.ArrayList;
import java.util.List;

public class EditorFlow {
    List<Command> commands = new ArrayList<>();
    void addCommands(Command command){
        commands.add(command);
    }
    void batchExecute(){
        commands.forEach(Command::execute);
    }
}
